---
layout: "default"
title: "IntegerLiteralConvertible"
description: "Swift documentation for 'IntegerLiteralConvertible': Conforming types can be initialized with integer literals."
keywords: "IntegerLiteralConvertible,protocol,swift,documentation,IntegerLiteralType"
root: "/v3.0"
---

<div class="intro-declaration"><code class="language-swift">protocol IntegerLiteralConvertible</code></div>

<div class="discussion comment">
    <p>Conforming types can be initialized with integer literals.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>

<tr>
<th id="aliases">Associated Types</th>
<td>
<span id="aliasesmark"></span>
<div class="declaration">
<code class="language-swift">IntegerLiteralType</code>
</div>
</td>
</tr>


<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>


<h3>Initializers</h3>
<div class="declaration" id="init-integerliteral_">
<a class="toggle-link" data-toggle="collapse" href="#comment-init-integerliteral_">init(<wbr>integerLiteral:)</a> <span class="required">Required</span><div class="comment collapse" id="comment-init-integerliteral_"><div class="p">
    <p>Create an instance initialized to <code>value</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">init(integerLiteral value: Self.IntegerLiteralType)</code>

    </div></div>
</div>







